diff options
Diffstat (limited to 'app/[lng]/partners')
| -rw-r--r-- | app/[lng]/partners/(partners)/swp-document-upload/page.tsx | 6 | ||||
| -rw-r--r-- | app/[lng]/partners/(partners)/swp-document-upload/vendor-document-page.tsx | 26 |
2 files changed, 16 insertions, 16 deletions
diff --git a/app/[lng]/partners/(partners)/swp-document-upload/page.tsx b/app/[lng]/partners/(partners)/swp-document-upload/page.tsx index 5b8a0be8..b97bc7fc 100644 --- a/app/[lng]/partners/(partners)/swp-document-upload/page.tsx +++ b/app/[lng]/partners/(partners)/swp-document-upload/page.tsx @@ -5,8 +5,8 @@ import VendorDocumentPage from "./vendor-document-page"; import { Shell } from "@/components/shell"; export const metadata = { - title: "문서 조회 및 업로드", - description: "협력업체 문서 조회 및 파일 업로드", + title: "Document Search and Upload", + description: "Vendor Document Search and File Upload", }; // ============================================================================ @@ -43,7 +43,7 @@ export default async function DocumentUploadPage({ <div className="flex items-center justify-between"> <div> <h2 className="text-2xl font-bold tracking-tight"> - SWP 문서 제출 + SWP Document Submission </h2> </div> </div> diff --git a/app/[lng]/partners/(partners)/swp-document-upload/vendor-document-page.tsx b/app/[lng]/partners/(partners)/swp-document-upload/vendor-document-page.tsx index 30dd0dba..f8c6f1a7 100644 --- a/app/[lng]/partners/(partners)/swp-document-upload/vendor-document-page.tsx +++ b/app/[lng]/partners/(partners)/swp-document-upload/vendor-document-page.tsx @@ -107,9 +107,9 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP setRequiredDocs(uploadedData.requiredDocs); } } catch (err) { - console.error("초기 데이터 로드 실패:", err); - setError(err instanceof Error ? err.message : "데이터 로드 실패"); - toast.error("데이터 로드 실패"); + console.error("Failed to load initial data:", err); + setError(err instanceof Error ? err.message : "Failed to load data"); + toast.error("Failed to load data"); } finally { setIsLoading(false); } @@ -132,11 +132,11 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP setStats(statsData); setInboxFiles(uploadedData.files); setRequiredDocs(uploadedData.requiredDocs); - toast.success("문서 목록을 갱신했습니다"); + toast.success("Document list refreshed"); } catch (err) { - console.error("문서 로드 실패:", err); - setError(err instanceof Error ? err.message : "문서 로드 실패"); - toast.error("문서 로드 실패"); + console.error("Failed to load documents:", err); + setError(err instanceof Error ? err.message : "Failed to load documents"); + toast.error("Failed to load documents"); } finally { setIsRefreshing(false); } @@ -188,7 +188,7 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP } if (searchFilters.status) { const statusLower = searchFilters.status.toLowerCase(); - const docStatus = doc.LTST_ACTV_STAT?.toLowerCase() || ""; + const docStatus = doc.LTST_ACTV_STAT?.toLowerCase() || "waiting"; if (!docStatus.includes(statusLower)) { return false; } @@ -239,7 +239,7 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP } return ( - <div {...getRootProps()} className="relative"> + <div {...getRootProps()} className="relative w-full min-w-0"> <input {...getInputProps()} /> {/* 드래그 오버레이 */} @@ -248,9 +248,9 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP <div className="bg-background border-2 border-dashed border-primary rounded-lg p-12 text-center space-y-4"> <Upload className="h-16 w-16 mx-auto text-primary animate-bounce" /> <div className="space-y-2"> - <p className="text-2xl font-semibold">파일을 여기에 드롭하세요</p> + <p className="text-2xl font-semibold">Drop files here</p> <p className="text-muted-foreground"> - 여러 파일을 한 번에 업로드할 수 있습니다 + You can upload multiple files at once </p> </div> </div> @@ -300,13 +300,13 @@ export default function VendorDocumentPage({ searchParams }: VendorDocumentPageP <Alert> <InfoIcon className="h-4 w-4" /> <AlertDescription> - 프로젝트를 선택하여 할당된 문서를 확인하세요. + Select a project to view assigned documents. </AlertDescription> </Alert> )} {/* 메인 테이블 - 탭 구조 */} - <Card> + <Card className="w-full overflow-hidden"> <CardHeader> <SwpTableToolbar projNo={projNo} |
